<template>
  <view class="content">
    <form @submit="onSubmit">
      testValue：<comp-input name="test" v-model="testValue"></comp-input>
      <button form-type="submit">Submit</button>
    </form>
  </view>
</template>

<script>
export default {
  data() {
    return {
      testValue: 'Hello'
    }
  },
  methods: {
    onSubmit(e) {
      console.log(e)
      uni.showToast({
        icon:"none",
        title:JSON.stringify(e)
      })
    }
  }
}
</script>
